package com.ruoyi.back.service.v3

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.back.domain.v3.SensitiveWordRecord
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

interface SensitiveWordRecordService : IService<SensitiveWordRecord> {


    fun selectSensitiveWordRecordList(sensitiveWordRecordSearchDto: SensitiveWordRecordSearchDto): Page<SensitiveWordRecord>


    fun saveSensitiveWordRecord(sensitiveWordRecordDto: SensitiveWordRecordDto): Boolean
}


@ApiModel("敏感词搜索参数")
data class SensitiveWordRecordSearchDto(

    @ApiModelProperty("用户id 或者 用户名称")
    var userInfo: String? = null,

    @ApiModelProperty("绘画描述词关键字")
    var prompt: String? = null,
)

@ApiModel("敏感词新增参数")
data class SensitiveWordRecordDto(

    @ApiModelProperty("创建人")
    var createBy: Long? = null,

    @ApiModelProperty("绘画描述词")
    var prompt: String? = null,
)